home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000132_jaltman2@nyc.rr.com_Wed Mar 10 16:28:38 2004.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
5KB
|
129 lines
Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!feed5.newsreader.com!newsreader.com!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!53ab2750!not-for-mail
Message-ID: <404F8662.8040300@nyc.rr.com>
From: Jeffrey Altman <jaltman2@nyc.rr.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Problems POSTing to ASP form from Kermit
References: <u6su40df16ffjvve82t3e6fhbvob8qk3im@4ax.com>
In-Reply-To: <u6su40df16ffjvve82t3e6fhbvob8qk3im@4ax.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 107
Date: Wed, 10 Mar 2004 21:18:26 GMT
NNTP-Posting-Host: 24.193.46.55
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyc.rr.com 1078953506 24.193.46.55 (Wed, 10 Mar 2004 16:18:26 EST)
NNTP-Posting-Date: Wed, 10 Mar 2004 16:18:26 EST
Organization: Road Runner - NYC
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14841
comments in-line ...
sam@spade.com wrote:
> Hey all,
>
> I'm new to this version of Kermit and the HTTP capabilities, so please
> bear with me. Also, I sent an email to support at Columbia.edu, but I
> never received a response (or my spam filter ate the response :(
I no longer work for Columbia and my time is spent on other endeavors
at the moment so I no longer respond to all support requests sent to
kermit-support at columbia.edu.
> I have a page in my ASP application that permits a user to browse and
> select a file on their system, then click the submit button to post
> the file to my page. The file is posted as a multipart/form-data mime
> type when done through the ASP page, and I can parse it just fine.
>
> I am trying to replicate this scenario for remote users running Kermit
> under SCO Unix. I'd like to have Kermit build the multipart message
> and post it just like an HTML form would. [Is this even possible?]
It is possible but you must construct the response the way your browser
would. If your ASP is sending a cookie to the client to be included
in the response, then you must construct a cookie header and include
it in the response.
When you perform the HTTP GET you can obtain an array containing
the headers in an array with
HTTP /ARRAY:H GET ...
You would then construct the header with
HTTP /HEADER:{Cookie: blob} POST ...
> So far, my trials with the PUT command result in nothing more than 403
> Forbidden errors (trying 2 different servers). The error message also
> shows the content-type as Text/html even though I've specified a mime
> type of multipart/form-data in the put command.
>
> Here's my Kermit command...
>
> http /TOSCREEN /USER:myuserd /PASSWORD:mypswd put
> /MIME-TYPE:multipart/form-data File2Upload.txt
> http://localhost/test20/RemoteFileImportPost.asp
>
> The results I get are as follows...
>
> DNS Lookup... Trying 127.0.0.1... (OK)
> Server: Microsoft-IIS/5.1
> Date: Tue, 02 Mar 2004 17:24:26 GMT
>
> HTTP/1.1 403 Forbidden
> Server: Microsoft-IIS/5.1
> Date: Tue, 02 Mar 2004 17:24:26 GMT
> Connection: close
> Content-Type: text/html
> Content-Length: 44
>
> (The content-length value of 44 doesn't change regardless of the file
> I've selected to upload.)
>
> I've included userid and password as both a switch and as a preface to
> the URL with identical results.
A 403 error means exactly what it says. The action you are attempting
to perform is Forbidden because you do not have the appropriate
authorization. The reason for the lack of authorization is not clear
from the error code.
The Content-Length: 44 refers to the length of the text/html data
which has been provided as part of the response from the web server.
Perhaps the text/html response is providing you with additional details.
If the userid and password are valid it is quite possible that the
web server requires an authentication method which is not currently
implemented in Kermit.
Obtaining network traces of the interactions from a browser and
comparing them to network traces of your Kermit script should provide
clues.
> I�m running on day 12 of the 21 day trial at the moment. The users
> I�m supporting are actually military food ordering guys in the field.
> They are all running C-Kermit 8.0.209, 17 Mar 2003, for Unixware 7,
> according to the doc they sent me.
>
> I�ve successfully managed to get Kermit to POST form data using a
> separate file for the form parameters. (This is how I�ll get the
> users to logon prior to sending their data.)
>
> Thanks for any help you can provide.
>
If you wish to obtain consulting services for assistance in solving
this problem or to have additional functionality added to the Kermit
HTTP command feel free to contact me at
jaltman a t secure-endpoints.com
The address from which this newsgroup posting is being made is not
read.
Jeffrey Altman
Kermit 95 Author
Secure Endpoints, Inc.